#include <iostream>
#include <math.h>
using namespace std;
typedef long double ld;
const ld epsylon = 0.0000011;
int main(int argc,char **argv)
{
	FILE *in,*out,*ans;
	int T;
	if(argc != 4)
	{
		printf("argument error!");
		return 2;
	}
	in = fopen(argv[1],"r");
	if(in  == NULL)
	{
		printf("Cannot open input!");
		return 2;
	}
	out = fopen(argv[3],"r");
	if(out == NULL)
	{
		printf("Cannot open output!");
		return 2;
	}
	ans = fopen(argv[2],"r");
	if(ans == NULL)
	{
		printf("Cannot open aswer!");
		return 2;
	}
	fscanf(in,"%d",&T);
	ld a,b;
	for(int i=0;i<T;i++)
	{
		fscanf(out,"%llf",&a);
		if(fscanf(ans,"%llf",&b) == EOF)
		{
			printf("Short answer!");
			return 1;
		}
		if(fabs(a-b) > epsylon)
		{
			printf("Wrong anwer! %d/n",i);
			printf("Wanted : %llf but got %llf\n",a,b);
			return 1;
		}
	}
	printf("OK.\n");
	return 0;
}


